package groovy

import com.pphh.demo.strategy.ShardStrategy

class TestShardStrategy implements ShardStrategy {

    public String calculateDbShard(Long id) {
        return String.valueOf(id % 100);
    }

    public String calculateTableShard(Long id) {
        return String.valueOf(id % 100);
    }

}